package com.mjk.manager.magicapi.core.core.exception;


import com.mjk.manager.magicapi.core.core.model.JsonCode;

/**
 * 接口验证异常
 *
 * @author mxd
 */
public class ValidateException extends RuntimeException {

    private final JsonCode jsonCode;

    public ValidateException(JsonCode jsonCode, String message) {
        super(message);
        this.jsonCode = jsonCode;
    }

    public JsonCode getJsonCode() {
        return jsonCode;
    }
}
